package org.example.studentsystem_back.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.studentsystem_back.domain.Dorm;
import org.example.studentsystem_back.domain.DormStu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
* @author 马鑫
* @description 针对表【dorm_stu】的数据库操作Mapper
* @createDate 2024-07-12 13:29:22
* @Entity org.example.studentsystem_back.domain.DormStu
*/
@Mapper
public interface DormStuMapper extends BaseMapper<DormStu> {
    @Select("SELECT * FROM dorm_stu LIMIT ${limit} OFFSET ${page};")
    List<Dorm> getDormStuByPage(int limit, int page);
}




